<!DOCTYPE html>
<html lang="en">
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1,user-scalable=no">
	<meta name="description" content="">
	<meta name="author" content="">
	
	<title>K. Antwerp Dealership VV</title>
	<link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,700,700italic,400italic' rel='stylesheet' type='text/css'>
	<link href="<?php echo base_url(); ?>styles/css/bootstrap.min.css" rel="stylesheet">
	<link href="<?php echo base_url(); ?>styles/css/allstyles.css" rel="stylesheet">

	<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css">
	<script text="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script>
  	<script text="text/javascript" src="http://code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
	
	</head>

	<body>
    <div class="navbar navbar-default navbar-static-top" role="navigation">
      <div class="container">
      	<div class="banner">
      		<img src="<?php echo base_url(); ?>images/ads_banner.png">
      	</div>
        <div class="navbar-header">
        	 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
	  		<?php echo anchor('main', 'K<span class="red">.</span> Antwerp Dealership VV', array('class' => 'navbar-brand')); ?>
        </div>
        <div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li><?php echo anchor('main', 'Home'); ?></li>        
				<li class="dropdown">
			  		<a href="#" class="dropdown-toggle" data-toggle="dropdown">Seizoen <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><?php echo anchor('speler/index', 'Spelers'); ?></li>
						<li><?php echo anchor('main/match_list', 'Wedstrijden'); ?></li>
						<li><?php echo anchor('main/ranking', 'Klassement'); ?></li>
						<li><?php echo anchor('main/media_list', 'Media'); ?></li>
						<li><a href="#">Statistieken</a></li>
						<li><a href="#">Beker</a></li>
					</ul>
				</li>
				<li><a href="#">Verslagen</a></li> 
				<li><a href="#">Palmares</a></li>
				<li><a href="#">ADS-Forum</a></li>
				<li><a href="#">VVV</a></li>
                                    
				<?php if(isset($admin) and $admin == true){ ?>
                    <li class="dropdown">          
				  		<a href="#" class="dropdown-toggle" data-toggle="dropdown">Admin <b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><?php echo anchor('speler/admin_index', 'Spelers'); ?></li>
							<li><?php echo anchor('seizoen', 'Seizoenen'); ?></li>
							<li><?php echo anchor('ploeg', 'Ploegen'); ?></li>
	                        <li><?php echo anchor('profile/admin', 'Afmelden'); ?></li>
						</ul>             
                    </li> 
               	<?php } ?>
			</ul>
			<ul class="nav navbar-nav navbar-right">
                        <?php if(isset($user)){ ?>
                            <li><?php echo anchor('#', $user->Naam.' '.$user->Voornaam); ?></li>
                        <?php } else { ?>
                        <li><?php echo anchor('profile', 'Login'); ?></li>
                        <?php } ?>
			<li><?php echo anchor('main/about', 'Over ons'); ?></li>
			<li><?php echo anchor('main/contact', 'Contact'); ?></li>
			</ul>
        </div>
      </div>
    </div>

    <div class="messagebox">
        <?php if(isset($message)) { 
        	echo '<span>'.$message.'</span>'; 
        } ?>
   	</div>
